export default {
  createTactics: {//创建策略，参数：name、description、data(选)
    url: '/publics/tactics/create',
    require: ['token', 'clientid']
  },
  getTactics: {//获取策略，参数：id
    url: '/publics/tactics/get',
    require: ['token', 'clientid']
  },
  getTacticsList: {//获取所有策略
    url: '/publics/tactics/list',
    require: ['token', 'clientid']
  },
  updateTactics: {//更新策略，参数：id、name(选)、enabled(选)、description(选)、data(选)
    url: '/publics/tactics/update',
    require: ['token', 'clientid']
  },
  //indexType--------------------
  createIndexType: {//创建指标类型，参数：title、code、data(选)、min、max
    url: '/publics/indexType/create',
    require: ['token', 'clientid']
  },
  updateIndexType: {//更新指标类型，参数：id、title(选)、code(选)、data(选)、min(选)、max(选)
    url: '/publics/indexType/update',
    require: ['token', 'clientid']
  },
  getIndexType: {//获取指标类型，参数：id/code
    url: '/publics/indexType/get',
    require: ['token', 'clientid']
  },
  delIndexType: {//删除指标类型，参数：id/code
    url: '/publics/indexType/delete',
    require: ['token', 'clientid']
  },
  getIndexTypeList: {//获取指标类型列表
    url: '/publics/indexType/list',
    require: ['token', 'clientid']
  },
  //index
  createIndex: {//创建指标，参数：title、indexTypeId、gradeType、gradeName、absoluteRange、data(选)
    url: '/publics/index/create',
    require: ['token', 'clientid']
  },
  updateIndex: {//更新指标，参数：id、title(选)、gradeType(选)、gradeName(选)、absoluteRange(选)、data(选)、enabled(选)
    url: '/publics/index/update',
    require: ['token', 'clientid']
  },
  getIndex: {//获取指标，参数：id
    url: '/publics/index/get',
    require: ['token', 'clientid']
  },
  delIndex: {//删除指标，参数：id
    url: '/publics/index/delete',
    require: ['token', 'clientid']
  },
  getIndexList: {//获取指标列表，参数：indexTypeCode(选)
    url: '/publics/index/list',
    require: ['token', 'clientid']
  },
  //tacticsIndex
  createTacticsIndex: {//保存策略指标，参数：name、parentId、description、data(选)、tacticsId(选,创建根策略指标时需要指定策略id)
    url: '/publics/tacticsIndex/create',
    require: ['token', 'clientid']
  },
  getTacticsIndex: {//获取策略指标，参数：id
    url: '/publics/tacticsIndex/get',
    require: ['token', 'clientid']
  },
  getTacticsIndexList: {//获取策略指标列表
    url: '/publics/tacticsIndex/list',
    require: ['token', 'clientid']
  },
  updateTacticsIndex: {//更新策略指标，参数：id、name、parentId(选填)、description(选填)
    url: '/publics/tacticsIndex/update',
    require: ['token', 'clientid']
  },
  DAUTacticsIndex: {//删除父策略指标并更新子策略指标，参数：id
    url: '/publics/tacticsIndex/deleteAndUpdate',
    require: ['token', 'clientid']
  },
  deleteFamilyTacticsIndex: {//删除父策略指标和所有子策略指标，参数：id
    url: '/publics/tacticsIndex/deleteFamily',
    require: ['token', 'clientid']
  },
  getTacticsIndexRoot: {//获取所有根目录策略指标
    url: '/publics/tacticsIndex/getRoot',
    require: ['token', 'clientid']
  },
  //detection
  createDetection: {//创建检测，参数：companyId、title、detectionItems(选)、data(选)
    url: '/publics/detection/create',
    require: ['token', 'clientid']
  },
  updateDetection: {//更新检测，参数：id、title(选)、enabled(选)、data(选)
    url: '/publics/detection/update',
    require: ['token', 'clientid']
  },
  getDetection: {//获取检测，参数：id
    url: '/publics/detection/get',
    require: ['token', 'clientid']
  },
  delDetection: {//删除检测，参数：id
    url: '/publics/detection/delete',
    require: ['token', 'clientid']
  },
  completeDetection: {//完成检测，参数：id
    url: '/publics/detection/complete',
    require: ['token', 'clientid']
  },
  getDetectionList: {//获取检测列表，参数：page、size(选)、companyId(选)、completed(选)、key(选)、enabled(选)
    url: '/publics/detection/list',
    require: ['token', 'clientid']
  },
  //detectionItem
  createDetectionItem: {//创建检测项，参数：detectionId、departmentId、instanceId、title、data(选)
    url: '/publics/detectionItem/create',
    require: ['token', 'clientid']
  },
  updateDetectionItem: {//修改检测项，参数：id、title(选)、data(选)
    url: '/publics/detectionItem/update',
    require: ['token', 'clientid']
  },
  delDetectionItem: {//删除检测项，参数：id
    url: '/publics/detectionItem/delete',
    require: ['token', 'clientid']
  },
  getDetectionItem: {//获取检测项，参数：id
    url: '/publics/detectionItem/get',
    require: ['token', 'clientid']
  },
  getDetectionItemList: {//获取检测项列表，参数：数：page、size(选)、departmentId(选)、detectionId(选)、key(选)、instanceId(选)
    url: '/publics/detectionItem/list',
    require: ['token', 'clientid']
  },
  //detectionBusiness
  createDetectionBusiness: {//创建检测业务，参数：tacticsIndexs、code、title、data(选)、metadata(选)
    url: '/publics/detectionBusiness/create',
    require: ['token', 'clientid']
  },
  updateDetectionBusiness: {//修改检测业务，参数：id、tacticsIndexs(选)、code(选)、title(选)、data(选)、metadata(选)
    url: '/publics/detectionBusiness/update',
    require: ['token', 'clientid']
  },
  delDetectionBusiness: {//删除检测业务，参数：id
    url: '/publics/detectionBusiness/delete',
    require: ['token', 'clientid']
  },
  getDetectionBusiness: {//获取检测业务，参数：id
    url: '/publics/detectionBusiness/get',
    require: ['token', 'clientid']
  },
  getDetectionBusinessList: {//获取检测业务列表，参数：[key(选)、tacticsIndexIds(选，tacticsIndexIds数组字符串)] / [detectionId(选)]
    url: '/publics/detectionBusiness/list',
    require: ['token', 'clientid']
  },
  setDetectionBusiness: {//给检测设置检测业务，参数：detectionId、detectionBusinessId、type(1add,2delete)、manual、data(选)
    url: '/publics/detection/setDetectionBusiness',
    require: ['token', 'clientid']
  },
  getDetectionLinkList: {//获取检测与检测业务的中间表列表，参数：detectionId/detectionBusinessId
    url: '/publics/detection/getDetectionAndBusiness',
    require: ['token', 'clientid']
  },
}
